﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace MyPhotoIndex.Controls
{
    public class RichToolStripProgressBar : ToolStripControlHost
    {
        public RichToolStripProgressBar()
            : base(new ColorProgressBar())
        {
            ProgressBar.Office2007Style = true;
            //this.Con
            //this.Control = colorProgressBar;
        }

        //protected override Con

        private ColorProgressBar colorProgressBar = new ColorProgressBar();
        //protected override void OnPaint(PaintEventArgs e)
        //{
        //    colorProgressBar.Width = Width;
        //    colorProgressBar.Height = Height;
        //    colorProgressBar.Minimum = Minimum;
        //    colorProgressBar.Maximum = Maximum;
        //    colorProgressBar.Value = Value;
        //    colorProgressBar.DrawOffice2007(e.Graphics, e.ClipRectangle);
        //    //base.OnPaint(e);
        //}

        //private ColorProgressBar m_richToolStripProgressBar;
        public ColorProgressBar ProgressBar
        {
            get
            {
                return Control as ColorProgressBar;
            }
        }
    }
}
